package User;

import BookOpertion.*;
import SetOpertion.SetOpertion;

public class NormalUser extends User {

    public NormalUser(String name) {
        super(name);
        iOpertions =new IOpertion[] {
                new ExitSystem(),
                new FindBook(),
                new BorrowBook(),
                new ReturnBook()
        };
    }

    @Override
    public int meun() {
        System.out.println("欢迎 "+getName()+" 来到普通用户系统");
        System.out.println("*************************************");
        System.out.println("\t\t\t1. 查阅图书");
        System.out.println("\t\t\t2. 借阅图书");
        System.out.println("\t\t\t3. 归还图书");
        System.out.println("\t\t\t0. 退出系统");
        System.out.println("*************************************");
        System.out.println("请输入你的操作：");
        SetOpertion setOpertions = new SetOpertion();
        int normalOpertion = setOpertions.setOpertion();

        return normalOpertion;
    }
}
